/*河南星辰软件科技有限公司
@copyright Copyright (c) 2010~2022 All rights reserved.
*/
package cn.javaxc.mes.action.produce;
import java.io.*;
import java.util.*;
import java.sql.*;
import cn.javaxc.model.base.SQL;
import cn.javaxc.model.base.SQLList;
import cn.javaxc.model.base.SQLMap;
import cn.javaxc.model.base.SQLParam;
import cn.javaxc.model.page.BatisPage;
import cn.javaxc.mvcwork.controller.web.TreeBean;
import cn.javaxc.mvcwork.util.common.CommonUtil;
import cn.javaxc.mvcwork.util.common.MapListUtil;
import cn.javaxc.mvcwork.util.helper.FrameHelper;
import cn.javaxc.mvcwork.util.helper.TreeTableHelper;
import org.springframework.beans.factory.annotation.Autowired;
import cn.javaxc.system.action.base.BaseAction;
import cn.javaxc.mes.mapper.produce.ProDeviceInfoMapper;
public class ProDeviceInfo extends BaseAction
{
    @Autowired(required=false)
	private ProDeviceInfoMapper mapper;
    /**
    生产设备信息
    */
    
    public Map proDeviceDet() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> produce_info=mapper.produce_info(params);
        SQLMap produce_info_emt=produce_info.getExistfirst();
        result.put("produce_info", produce_info_emt);
        
        
        SQLList<SQLMap> s_device_abrasives=mapper.s_device_abrasives(params);
        result.put("s_device_abrasives", s_device_abrasives);
        
        return result;
    }
    /**
    修改设备信息
    */
    
    public Map proDeviceUp() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> s_sname=mapper.s_sname(params);
        result.put("s_sname", s_sname);
        
        
        SQLList<SQLMap> s_mname=mapper.s_mname(params);
        result.put("s_mname", s_mname);
        
        
        SQLList<SQLMap> produce_info=mapper.produce_info(params);
        SQLMap produce_info_emt=produce_info.getExistfirst();
        result.put("produce_info", produce_info_emt);
        
        
        SQLList<SQLMap> s_device_abrasives=mapper.s_device_abrasives(params);
        result.put("s_device_abrasives", s_device_abrasives);
        
        return result;
    }
    /**
    检测设备信息
    */
    
    public Map detectionDevDet() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> produce_info=mapper.produce_info(params);
        SQLMap produce_info_emt=produce_info.getExistfirst();
        result.put("produce_info", produce_info_emt);
        
        return result;
    }
    /**
    修改设备信息
    */
    
    public Map detectionDevDetUp() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> s_sname=mapper.s_sname(params);
        result.put("s_sname", s_sname);
        
        
        SQLList<SQLMap> s_mname=mapper.s_mname(params);
        result.put("s_mname", s_mname);
        
        
        SQLList<SQLMap> produce_info=mapper.produce_info(params);
        SQLMap produce_info_emt=produce_info.getExistfirst();
        result.put("produce_info", produce_info_emt);
        
        return result;
    }
    /**
    修改设备信息修改
    */
    
    public Map proDeviceUpSubmit() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        mapper.proDeviceUpSubmit(params);
        
        return result;
    }
    /**
    修改设备信息修改
    */
    
    public Map detectionDevDetUpSubmit() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        mapper.detectionDevDetUpSubmit(params);
        
        return result;
    }
}